package com.hogan.hoganproject.home.mvp;

import com.hogan.hoganproject.base.mvp.BasePresenter;
import com.hogan.hoganproject.base.mvp.IBaseControl;
import com.hogan.hoganproject.home.api.JuHeBean;

import java.util.Map;

/**
 * Author: chenhu
 * Time: 2020/8/31 10:08
 * Description do somethings
 */
public interface HomeControl {

    interface HomeView extends IBaseControl.IBaseView {
        void updateNewsData(JuHeBean.ResultBean resultBean);

        void onLoadDataFail(String error);

        void stopRefreshData();

        void stopLoadMoreData();
    }

    abstract class HPresenter<V extends HomeView> extends BasePresenter<V> {
        public abstract void getNewsData(Map<String, String> map);
    }
}
